package models

import "time"

var (
	CollegeIsCooperation map[int]string
	CollegeIsSingle      map[int]string
	CollegeIsArt         map[int]string
	CollegeIsMatch       map[int]string
)

type College struct {
	Id                int64          `xorm:"pk autoincr" json:"collegeId"`
	UniversityId      int64          `xorm:"comment('大学id')" json:"collegeUniversityId"`
	CollegeLevelId    int64          `xorm:"comment('院校分数段位id')" json:"collegeLevelId"`
	Name              string         `xorm:"comment('院校名称')" json:"collegeName"`
	Code              string         `xorm:"comment('招生代码')" json:"collegeCode"`
	IsMatch           int            `xorm:"comment('是否参与匹配 0不匹配 1匹配')" json:"collegeIsMatch"`
	IsSingle          int            `xorm:"comment('院校是否进行单独招生 0不是 1是')" json:"collegeIsSingle"`
	IsCooperation     int            `xorm:"comment('是否是合作院校 0不是 1是')" json:"collegeIsCooperation"`
	IsArt             int            `xorm:"comment('院校是否进行艺术类招生 0不进行 1进行')" json:"collegeIsArt"`
	RegCode           string         `xorm:"comment('注册码')" json:"collegeRegCode"`
	RegCodeNum        int            `xorm:"comment('注册码可以使用的次数')" json:"collegeRegCodeNum"`
	Created           time.Time      `xorm:"created comment('创建时间')" json:"-"`
	Deleted           time.Time      `xorm:"deleted comment('删除时间')" json:"-"`
	CreatedShow       string         `xorm:"-" json:"collegeCreated"`
	IsCooperationShow string         `xorm:"-" json:"collegeIsCooperationShow"`
	IsSingleShow      string         `xorm:"-" json:"collegeIsSingleShow"`
	IsArtShow         string         `xorm:"-" json:"collegeIsArtShow"`
	IsMatchShow       string         `xorm:"-" json:"collegeIsMatchShow"`
	Labels            []CollegeLabel `xorm:"-" json:"collegeLabels"`
}

func init() {
	CollegeIsCooperation = map[int]string{
		0: "未合作",
		1: "已合作",
	}

	CollegeIsSingle = map[int]string{
		0: "不单招",
		1: "单招",
	}

	CollegeIsArt = map[int]string{
		0: "不艺考",
		1: "艺考",
	}

	CollegeIsMatch = map[int]string{
		0: "不匹配",
		1: "匹配",
	}
}
